import React, {Component} from 'react';

class App5 extends Component {
    constructor(props) {
        super(props);
        this.state={
            mess:'lbwnb'
        }
    }

    handleChange(e){
        // e.target

        this.setState({
            mess:e.target.value
        })
    }

    render() {
        return (
            <div>
                <input type='text' value={this.state.mess} onChange={this.handleChange.bind(this)}/>
                <p>{this.state.mess}</p>
            </div>
        );
    }
}

export default App5;